package com.ext.portlet.solicitud.action;


import java.util.List;

import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletConfig;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.liferay.portal.struts.PortletAction;
import com.oeaide.persistence.HibernateUtil;
import com.oeaide.persistence.S013Universidad;
import com.ext.portlet.solicitud.forms.*;


public class Return extends PortletAction{
	public void processAction(ActionMapping mapping,ActionForm form, PortletConfig config,
			ActionRequest req, ActionResponse res)
	throws Exception
	{		
		setForward(req, "portlet.ext.solicitud.return");
	}
	
	public ActionForward render(ActionMapping mapping, ActionForm form, PortletConfig config,
			RenderRequest req, RenderResponse res)
	throws Exception
	{
		System.out.println("LLEGO A RENDER!!!");
		if (getForward(req) != null && !getForward(req).equals(""))
		{
			return mapping.findForward(getForward(req));
		}
		else
		{
			return mapping.findForward("portlet.ext.stliferay.view");
		}
	}
}
